#include <vector>
using namespace std;

#include <d3d9.h>
#include <d3dx9.h>
#include "sprite.h"

#pragma once

class CRo
{
public:
	CRo(void);
	CRo(LPDIRECT3DTEXTURE9, LPDIRECT3DDEVICE9, int, int, int, int);
	void draw();
	void update(int);
	SPRITE getSprite();
	~CRo(void);
private:
	SPRITE sprite;
	HRESULT result;
	LPDIRECT3DDEVICE9 dev;
	LPD3DXSPRITE handler;
	LPDIRECT3DTEXTURE9 img;
	int x, y, w, h;
	typedef struct {
		int x,y;
		int width,height;
		int movex,movey;
		int curframe,lastframe;
		int animdelay,animcount;
	} SPRITE;
};
